package org.blogwu.learn.designpattern.chapter28;

/**
 * 系统用户
 * @author senfel
 * @version 1.0
 * @date 2022/8/17 10:42
 */
public class Users {
    /**
     * 工作类型标识
     */
    public static final String WORK_TYPE_ONE = "WORK_TYPE_ONE";
    public static final String WORK_TYPE_TWO = "WORK_TYPE_TWO";
    public static final String WORK_TYPE_THREE = "WORK_TYPE_THREE";

    public Users(Integer id, String name, Integer age, String workType, String desc) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.workType = workType;
        this.desc = desc;
    }

    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 工作类型
     */
    private String workType;
    /**
     * 备注
     */
    private String desc;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getWorkType() {
        return workType;
    }

    public void setWorkType(String workType) {
        this.workType = workType;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "Users{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", workType='" + workType + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }


}
